﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;


using Model;
using NHibernateBusiness.Data;

namespace DataDeal
{
    public class ExpressCompanyCostDAL
    {
        private INHibernateHelper _helper;
       
        public ExpressCompanyCostDAL()
        {
            _helper = NHibernateFactory.Instance.GetDataHandler(); 
        }


        IList<ExpressCompanyCostDAL> GetQuery()
        {
            return _helper.GetQueryBySql<ExpressCompanyCostDAL>("select new ExpressCompanyCost( n.Name,n.LinkMan,c.Cost) from ExpressCompany n,ExpressCompanyCost c where n.Id=c.ExpressCompanyId");
        }

    }
}
